{extend name="layout/iframe" /}

{block name="content"}
<div class="x-body layui-anim layui-anim-up">
    <form class="layui-form">
        <div class="layui-form-item">
            <label for="typeName" class="layui-form-label">
                <span class="x-red">*</span>分类名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="typeName" name="typeName" lay-verify="typeName" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red">*</span>分类图片
            </label>
            <div class="layui-upload">
                <button type="button" class="layui-btn" id="typeImg">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
                <span style="margin-left: 20px;color: #9e9e9e;">图片大小：不超过200K</span>
                <div class="layui-upload-list" style="margin-left: 20%;">
                    <img class="layui-upload-img" style="width: 100px;" id="test-upload-normal-img">
                    <p id="test-upload-demoText"></p>
                </div>
            </div>
            <input type="hidden" id="imgUrlvalue" value="" name="imgUrl" lay-verify="imgUrl" />
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="add" lay-submit="">增加</button>
        </div>
    </form>
</div>

<script>
    var save_url = "{:url('admin/type/savepost')}";
</script>
<script src="__STATIC__/admin/pages/js/type.js" type="text/javascript"></script>
{/block}